/**
 *
 * @author T-Complement
 */

package iuTaxSimula;


public class PantallaTaxi extends javax.swing.JFrame {

    
    private ModificarSituacionesTaxi modificarSituacionesTaxis;
    private AsignarServicio asignarServicio;
    

    /** Creates new form PantallaTaxi */
    public PantallaTaxi() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanelPantallaTaxi = new javax.swing.JPanel();
        jLabelPantallaTaxi1 = new javax.swing.JLabel();
        jLabelPantallaTaxi2 = new javax.swing.JLabel();
        jLabelPantallaTaxi3 = new javax.swing.JLabel();
        jButtonPantallaTaxiCambiarEst = new javax.swing.JButton();
        jButtonPantallaTaxiCambiarDisp = new javax.swing.JButton();
        jButtonPantallaTaxiAceptarServ = new javax.swing.JButton();
        jButtonPantallaTaxiRechazarServ = new javax.swing.JButton();
        jButtonPantallaTaxiCerrar = new javax.swing.JButton();
        jTextFieldPantallaTaxiMensaje = new javax.swing.JTextField();
        jTextFieldPantallaTaxiPlaca = new javax.swing.JTextField();
        jTextFieldPantallaTaxiFecha = new javax.swing.JTextField();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jLabelPantallaTaxi1.setFont(new java.awt.Font("Tahoma", 0, 18));
        jLabelPantallaTaxi1.setText("TaxSiMuLa");

        jLabelPantallaTaxi2.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabelPantallaTaxi2.setText("Estado");

        jLabelPantallaTaxi3.setFont(new java.awt.Font("Tahoma", 0, 14));
        jLabelPantallaTaxi3.setText("Disponibilidad");

        jButtonPantallaTaxiCambiarEst.setText("Cambiar Estado");

        jButtonPantallaTaxiCambiarDisp.setText("Cambiar Disponibilidad");

        jButtonPantallaTaxiAceptarServ.setText("Aceptar Servicio");
        jButtonPantallaTaxiAceptarServ.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButtonPantallaTaxiAceptarServMouseClicked(evt);
            }
        });

        jButtonPantallaTaxiRechazarServ.setText("Rechazar Servicio");

        jButtonPantallaTaxiCerrar.setText("Cerrar");

        jTextFieldPantallaTaxiMensaje.setEnabled(false);
        jTextFieldPantallaTaxiMensaje.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextFieldPantallaTaxiMensajeActionPerformed(evt);
            }
        });

        jTextFieldPantallaTaxiPlaca.setEnabled(false);

        jTextFieldPantallaTaxiFecha.setEnabled(false);

        javax.swing.GroupLayout jPanelPantallaTaxiLayout = new javax.swing.GroupLayout(jPanelPantallaTaxi);
        jPanelPantallaTaxi.setLayout(jPanelPantallaTaxiLayout);
        jPanelPantallaTaxiLayout.setHorizontalGroup(
            jPanelPantallaTaxiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelPantallaTaxiLayout.createSequentialGroup()
                .addGroup(jPanelPantallaTaxiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelPantallaTaxiLayout.createSequentialGroup()
                        .addGap(50, 50, 50)
                        .addComponent(jLabelPantallaTaxi1)
                        .addGap(37, 37, 37)
                        .addComponent(jTextFieldPantallaTaxiPlaca, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(29, 29, 29)
                        .addComponent(jTextFieldPantallaTaxiFecha, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanelPantallaTaxiLayout.createSequentialGroup()
                        .addGap(27, 27, 27)
                        .addGroup(jPanelPantallaTaxiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabelPantallaTaxi3)
                            .addComponent(jLabelPantallaTaxi2))
                        .addGroup(jPanelPantallaTaxiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(jPanelPantallaTaxiLayout.createSequentialGroup()
                                .addGap(26, 26, 26)
                                .addComponent(jButtonPantallaTaxiCambiarDisp)
                                .addGap(18, 18, 18))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelPantallaTaxiLayout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jButtonPantallaTaxiCambiarEst)
                                .addGap(32, 32, 32)))
                        .addGroup(jPanelPantallaTaxiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jButtonPantallaTaxiAceptarServ, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButtonPantallaTaxiRechazarServ)))
                    .addGroup(jPanelPantallaTaxiLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jTextFieldPantallaTaxiMensaje, javax.swing.GroupLayout.DEFAULT_SIZE, 398, Short.MAX_VALUE)))
                .addContainerGap())
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelPantallaTaxiLayout.createSequentialGroup()
                .addContainerGap(318, Short.MAX_VALUE)
                .addComponent(jButtonPantallaTaxiCerrar)
                .addGap(37, 37, 37))
        );
        jPanelPantallaTaxiLayout.setVerticalGroup(
            jPanelPantallaTaxiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelPantallaTaxiLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelPantallaTaxiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldPantallaTaxiPlaca, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextFieldPantallaTaxiFecha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelPantallaTaxi1))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jTextFieldPantallaTaxiMensaje, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 13, Short.MAX_VALUE)
                .addGroup(jPanelPantallaTaxiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanelPantallaTaxiLayout.createSequentialGroup()
                        .addComponent(jLabelPantallaTaxi2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanelPantallaTaxiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabelPantallaTaxi3)
                            .addComponent(jButtonPantallaTaxiCambiarDisp))
                        .addGap(40, 40, 40))
                    .addGroup(jPanelPantallaTaxiLayout.createSequentialGroup()
                        .addGroup(jPanelPantallaTaxiLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jButtonPantallaTaxiAceptarServ)
                            .addComponent(jButtonPantallaTaxiCambiarEst))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButtonPantallaTaxiRechazarServ)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButtonPantallaTaxiCerrar)
                        .addContainerGap())))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanelPantallaTaxi, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanelPantallaTaxi, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jTextFieldPantallaTaxiMensajeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextFieldPantallaTaxiMensajeActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextFieldPantallaTaxiMensajeActionPerformed

    private void jButtonPantallaTaxiAceptarServMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButtonPantallaTaxiAceptarServMouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_jButtonPantallaTaxiAceptarServMouseClicked

    public void mostrarMensajeServicio(String placa, int calle, int carrera){

        jTextFieldPantallaTaxiMensaje.setText("Desea aceptar el servicio para la dirección" +
            "la dirección calle  "+ calle+ "carrera" + carrera);
    }

    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButtonPantallaTaxiAceptarServ;
    private javax.swing.JButton jButtonPantallaTaxiCambiarDisp;
    private javax.swing.JButton jButtonPantallaTaxiCambiarEst;
    private javax.swing.JButton jButtonPantallaTaxiCerrar;
    private javax.swing.JButton jButtonPantallaTaxiRechazarServ;
    private javax.swing.JLabel jLabelPantallaTaxi1;
    private javax.swing.JLabel jLabelPantallaTaxi2;
    private javax.swing.JLabel jLabelPantallaTaxi3;
    private javax.swing.JPanel jPanelPantallaTaxi;
    private javax.swing.JTextField jTextFieldPantallaTaxiFecha;
    private javax.swing.JTextField jTextFieldPantallaTaxiMensaje;
    private javax.swing.JTextField jTextFieldPantallaTaxiPlaca;
    // End of variables declaration//GEN-END:variables

}
